// @Author EthanScriptOn
// @Desc
package config_define

type ConfigSourceType string

const (
	YAML       ConfigSourceType = "yml"
	INI        ConfigSourceType = "ini"
	PROPERTIES ConfigSourceType = "properties"
	ENV        ConfigSourceType = "env"
	CLI        ConfigSourceType = "cli"
)

type FreightOrder string

const (
	FileOrder FreightOrder = "file"
	EnvOrder  FreightOrder = "env"
	CliOrder  FreightOrder = "cli"
)

var ConfigSourceTypeFreightMapping = map[ConfigSourceType]FreightOrder{
	YAML:       FileOrder,
	INI:        FileOrder,
	PROPERTIES: FileOrder,
	ENV:        EnvOrder,
	CLI:        CliOrder,
}

type NodeElemType string

const (
	SRF_LOAD_FILE_PATH NodeElemType = "srf-load-file-path"
	SRF_ENV            NodeElemType = "srf-env"
)
